/**
 * Author: w景洋.
 * Time: 2016/9/5 0005
 */
angular.module('common.auth', [
    'ui.router',
    'module.auth',
    'module.wxauth',
])
    .run(
    [          '$rootScope', '$state', '$stateParams',
        function ($rootScope,   $state,   $stateParams) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
        }
    ]
)

    .config(
    [          '$stateProvider', '$urlRouterProvider','$locationProvider',
        function ($stateProvider,   $urlRouterProvider,$locationProvider) {
            $urlRouterProvider.otherwise('login');
            $locationProvider.html5Mode(html5mode);
        }
    ])

    .config(['$httpProvider', function ($httpProvider) {
        $httpProvider.defaults.withCredentials = true;
        //$httpProvider.interceptors.push('CommonSingleSignOn');
    }]

);